package com.qike.duola.domain;

import java.time.LocalDateTime;
import java.util.ArrayList;
import java.util.List;

public class DuolaFormulaExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public DuolaFormulaExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andIdIsNull() {
            addCriterion("id is null");
            return (Criteria) this;
        }

        public Criteria andIdIsNotNull() {
            addCriterion("id is not null");
            return (Criteria) this;
        }

        public Criteria andIdEqualTo(Integer value) {
            addCriterion("id =", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotEqualTo(Integer value) {
            addCriterion("id <>", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThan(Integer value) {
            addCriterion("id >", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("id >=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThan(Integer value) {
            addCriterion("id <", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThanOrEqualTo(Integer value) {
            addCriterion("id <=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdIn(List<Integer> values) {
            addCriterion("id in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotIn(List<Integer> values) {
            addCriterion("id not in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdBetween(Integer value1, Integer value2) {
            addCriterion("id between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotBetween(Integer value1, Integer value2) {
            addCriterion("id not between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andFormulaNameIsNull() {
            addCriterion("formula_name is null");
            return (Criteria) this;
        }

        public Criteria andFormulaNameIsNotNull() {
            addCriterion("formula_name is not null");
            return (Criteria) this;
        }

        public Criteria andFormulaNameEqualTo(String value) {
            addCriterion("formula_name =", value, "formulaName");
            return (Criteria) this;
        }

        public Criteria andFormulaNameNotEqualTo(String value) {
            addCriterion("formula_name <>", value, "formulaName");
            return (Criteria) this;
        }

        public Criteria andFormulaNameGreaterThan(String value) {
            addCriterion("formula_name >", value, "formulaName");
            return (Criteria) this;
        }

        public Criteria andFormulaNameGreaterThanOrEqualTo(String value) {
            addCriterion("formula_name >=", value, "formulaName");
            return (Criteria) this;
        }

        public Criteria andFormulaNameLessThan(String value) {
            addCriterion("formula_name <", value, "formulaName");
            return (Criteria) this;
        }

        public Criteria andFormulaNameLessThanOrEqualTo(String value) {
            addCriterion("formula_name <=", value, "formulaName");
            return (Criteria) this;
        }

        public Criteria andFormulaNameLike(String value) {
            addCriterion("formula_name like", value, "formulaName");
            return (Criteria) this;
        }

        public Criteria andFormulaNameNotLike(String value) {
            addCriterion("formula_name not like", value, "formulaName");
            return (Criteria) this;
        }

        public Criteria andFormulaNameIn(List<String> values) {
            addCriterion("formula_name in", values, "formulaName");
            return (Criteria) this;
        }

        public Criteria andFormulaNameNotIn(List<String> values) {
            addCriterion("formula_name not in", values, "formulaName");
            return (Criteria) this;
        }

        public Criteria andFormulaNameBetween(String value1, String value2) {
            addCriterion("formula_name between", value1, value2, "formulaName");
            return (Criteria) this;
        }

        public Criteria andFormulaNameNotBetween(String value1, String value2) {
            addCriterion("formula_name not between", value1, value2, "formulaName");
            return (Criteria) this;
        }

        public Criteria andAddTimeIsNull() {
            addCriterion("add_time is null");
            return (Criteria) this;
        }

        public Criteria andAddTimeIsNotNull() {
            addCriterion("add_time is not null");
            return (Criteria) this;
        }

        public Criteria andAddTimeEqualTo(LocalDateTime value) {
            addCriterion("add_time =", value, "addTime");
            return (Criteria) this;
        }

        public Criteria andAddTimeNotEqualTo(LocalDateTime value) {
            addCriterion("add_time <>", value, "addTime");
            return (Criteria) this;
        }

        public Criteria andAddTimeGreaterThan(LocalDateTime value) {
            addCriterion("add_time >", value, "addTime");
            return (Criteria) this;
        }

        public Criteria andAddTimeGreaterThanOrEqualTo(LocalDateTime value) {
            addCriterion("add_time >=", value, "addTime");
            return (Criteria) this;
        }

        public Criteria andAddTimeLessThan(LocalDateTime value) {
            addCriterion("add_time <", value, "addTime");
            return (Criteria) this;
        }

        public Criteria andAddTimeLessThanOrEqualTo(LocalDateTime value) {
            addCriterion("add_time <=", value, "addTime");
            return (Criteria) this;
        }

        public Criteria andAddTimeIn(List<LocalDateTime> values) {
            addCriterion("add_time in", values, "addTime");
            return (Criteria) this;
        }

        public Criteria andAddTimeNotIn(List<LocalDateTime> values) {
            addCriterion("add_time not in", values, "addTime");
            return (Criteria) this;
        }

        public Criteria andAddTimeBetween(LocalDateTime value1, LocalDateTime value2) {
            addCriterion("add_time between", value1, value2, "addTime");
            return (Criteria) this;
        }

        public Criteria andAddTimeNotBetween(LocalDateTime value1, LocalDateTime value2) {
            addCriterion("add_time not between", value1, value2, "addTime");
            return (Criteria) this;
        }

        public Criteria andAddUidIsNull() {
            addCriterion("add_uid is null");
            return (Criteria) this;
        }

        public Criteria andAddUidIsNotNull() {
            addCriterion("add_uid is not null");
            return (Criteria) this;
        }

        public Criteria andAddUidEqualTo(Long value) {
            addCriterion("add_uid =", value, "addUid");
            return (Criteria) this;
        }

        public Criteria andAddUidNotEqualTo(Long value) {
            addCriterion("add_uid <>", value, "addUid");
            return (Criteria) this;
        }

        public Criteria andAddUidGreaterThan(Long value) {
            addCriterion("add_uid >", value, "addUid");
            return (Criteria) this;
        }

        public Criteria andAddUidGreaterThanOrEqualTo(Long value) {
            addCriterion("add_uid >=", value, "addUid");
            return (Criteria) this;
        }

        public Criteria andAddUidLessThan(Long value) {
            addCriterion("add_uid <", value, "addUid");
            return (Criteria) this;
        }

        public Criteria andAddUidLessThanOrEqualTo(Long value) {
            addCriterion("add_uid <=", value, "addUid");
            return (Criteria) this;
        }

        public Criteria andAddUidIn(List<Long> values) {
            addCriterion("add_uid in", values, "addUid");
            return (Criteria) this;
        }

        public Criteria andAddUidNotIn(List<Long> values) {
            addCriterion("add_uid not in", values, "addUid");
            return (Criteria) this;
        }

        public Criteria andAddUidBetween(Long value1, Long value2) {
            addCriterion("add_uid between", value1, value2, "addUid");
            return (Criteria) this;
        }

        public Criteria andAddUidNotBetween(Long value1, Long value2) {
            addCriterion("add_uid not between", value1, value2, "addUid");
            return (Criteria) this;
        }

        public Criteria andStatusIsNull() {
            addCriterion("status is null");
            return (Criteria) this;
        }

        public Criteria andStatusIsNotNull() {
            addCriterion("status is not null");
            return (Criteria) this;
        }

        public Criteria andStatusEqualTo(Integer value) {
            addCriterion("status =", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusNotEqualTo(Integer value) {
            addCriterion("status <>", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusGreaterThan(Integer value) {
            addCriterion("status >", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusGreaterThanOrEqualTo(Integer value) {
            addCriterion("status >=", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusLessThan(Integer value) {
            addCriterion("status <", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusLessThanOrEqualTo(Integer value) {
            addCriterion("status <=", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusIn(List<Integer> values) {
            addCriterion("status in", values, "status");
            return (Criteria) this;
        }

        public Criteria andStatusNotIn(List<Integer> values) {
            addCriterion("status not in", values, "status");
            return (Criteria) this;
        }

        public Criteria andStatusBetween(Integer value1, Integer value2) {
            addCriterion("status between", value1, value2, "status");
            return (Criteria) this;
        }

        public Criteria andStatusNotBetween(Integer value1, Integer value2) {
            addCriterion("status not between", value1, value2, "status");
            return (Criteria) this;
        }

        public Criteria andUpdateUidIsNull() {
            addCriterion("update_uid is null");
            return (Criteria) this;
        }

        public Criteria andUpdateUidIsNotNull() {
            addCriterion("update_uid is not null");
            return (Criteria) this;
        }

        public Criteria andUpdateUidEqualTo(Long value) {
            addCriterion("update_uid =", value, "updateUid");
            return (Criteria) this;
        }

        public Criteria andUpdateUidNotEqualTo(Long value) {
            addCriterion("update_uid <>", value, "updateUid");
            return (Criteria) this;
        }

        public Criteria andUpdateUidGreaterThan(Long value) {
            addCriterion("update_uid >", value, "updateUid");
            return (Criteria) this;
        }

        public Criteria andUpdateUidGreaterThanOrEqualTo(Long value) {
            addCriterion("update_uid >=", value, "updateUid");
            return (Criteria) this;
        }

        public Criteria andUpdateUidLessThan(Long value) {
            addCriterion("update_uid <", value, "updateUid");
            return (Criteria) this;
        }

        public Criteria andUpdateUidLessThanOrEqualTo(Long value) {
            addCriterion("update_uid <=", value, "updateUid");
            return (Criteria) this;
        }

        public Criteria andUpdateUidIn(List<Long> values) {
            addCriterion("update_uid in", values, "updateUid");
            return (Criteria) this;
        }

        public Criteria andUpdateUidNotIn(List<Long> values) {
            addCriterion("update_uid not in", values, "updateUid");
            return (Criteria) this;
        }

        public Criteria andUpdateUidBetween(Long value1, Long value2) {
            addCriterion("update_uid between", value1, value2, "updateUid");
            return (Criteria) this;
        }

        public Criteria andUpdateUidNotBetween(Long value1, Long value2) {
            addCriterion("update_uid not between", value1, value2, "updateUid");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeIsNull() {
            addCriterion("update_time is null");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeIsNotNull() {
            addCriterion("update_time is not null");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeEqualTo(LocalDateTime value) {
            addCriterion("update_time =", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeNotEqualTo(LocalDateTime value) {
            addCriterion("update_time <>", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeGreaterThan(LocalDateTime value) {
            addCriterion("update_time >", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeGreaterThanOrEqualTo(LocalDateTime value) {
            addCriterion("update_time >=", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeLessThan(LocalDateTime value) {
            addCriterion("update_time <", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeLessThanOrEqualTo(LocalDateTime value) {
            addCriterion("update_time <=", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeIn(List<LocalDateTime> values) {
            addCriterion("update_time in", values, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeNotIn(List<LocalDateTime> values) {
            addCriterion("update_time not in", values, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeBetween(LocalDateTime value1, LocalDateTime value2) {
            addCriterion("update_time between", value1, value2, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeNotBetween(LocalDateTime value1, LocalDateTime value2) {
            addCriterion("update_time not between", value1, value2, "updateTime");
            return (Criteria) this;
        }

        public Criteria andConcreteIdIsNull() {
            addCriterion("concrete_Id is null");
            return (Criteria) this;
        }

        public Criteria andConcreteIdIsNotNull() {
            addCriterion("concrete_Id is not null");
            return (Criteria) this;
        }

        public Criteria andConcreteIdEqualTo(Integer value) {
            addCriterion("concrete_Id =", value, "concreteId");
            return (Criteria) this;
        }

        public Criteria andConcreteIdNotEqualTo(Integer value) {
            addCriterion("concrete_Id <>", value, "concreteId");
            return (Criteria) this;
        }

        public Criteria andConcreteIdGreaterThan(Integer value) {
            addCriterion("concrete_Id >", value, "concreteId");
            return (Criteria) this;
        }

        public Criteria andConcreteIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("concrete_Id >=", value, "concreteId");
            return (Criteria) this;
        }

        public Criteria andConcreteIdLessThan(Integer value) {
            addCriterion("concrete_Id <", value, "concreteId");
            return (Criteria) this;
        }

        public Criteria andConcreteIdLessThanOrEqualTo(Integer value) {
            addCriterion("concrete_Id <=", value, "concreteId");
            return (Criteria) this;
        }

        public Criteria andConcreteIdIn(List<Integer> values) {
            addCriterion("concrete_Id in", values, "concreteId");
            return (Criteria) this;
        }

        public Criteria andConcreteIdNotIn(List<Integer> values) {
            addCriterion("concrete_Id not in", values, "concreteId");
            return (Criteria) this;
        }

        public Criteria andConcreteIdBetween(Integer value1, Integer value2) {
            addCriterion("concrete_Id between", value1, value2, "concreteId");
            return (Criteria) this;
        }

        public Criteria andConcreteIdNotBetween(Integer value1, Integer value2) {
            addCriterion("concrete_Id not between", value1, value2, "concreteId");
            return (Criteria) this;
        }

        public Criteria andIsTemplateIsNull() {
            addCriterion("is_template is null");
            return (Criteria) this;
        }

        public Criteria andIsTemplateIsNotNull() {
            addCriterion("is_template is not null");
            return (Criteria) this;
        }

        public Criteria andIsTemplateEqualTo(Integer value) {
            addCriterion("is_template =", value, "isTemplate");
            return (Criteria) this;
        }

        public Criteria andIsTemplateNotEqualTo(Integer value) {
            addCriterion("is_template <>", value, "isTemplate");
            return (Criteria) this;
        }

        public Criteria andIsTemplateGreaterThan(Integer value) {
            addCriterion("is_template >", value, "isTemplate");
            return (Criteria) this;
        }

        public Criteria andIsTemplateGreaterThanOrEqualTo(Integer value) {
            addCriterion("is_template >=", value, "isTemplate");
            return (Criteria) this;
        }

        public Criteria andIsTemplateLessThan(Integer value) {
            addCriterion("is_template <", value, "isTemplate");
            return (Criteria) this;
        }

        public Criteria andIsTemplateLessThanOrEqualTo(Integer value) {
            addCriterion("is_template <=", value, "isTemplate");
            return (Criteria) this;
        }

        public Criteria andIsTemplateIn(List<Integer> values) {
            addCriterion("is_template in", values, "isTemplate");
            return (Criteria) this;
        }

        public Criteria andIsTemplateNotIn(List<Integer> values) {
            addCriterion("is_template not in", values, "isTemplate");
            return (Criteria) this;
        }

        public Criteria andIsTemplateBetween(Integer value1, Integer value2) {
            addCriterion("is_template between", value1, value2, "isTemplate");
            return (Criteria) this;
        }

        public Criteria andIsTemplateNotBetween(Integer value1, Integer value2) {
            addCriterion("is_template not between", value1, value2, "isTemplate");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}